package tack15;

import javax.swing.*;
import java.awt.*;

/**
 * 转账界面
 */
public class TransferPanel extends JPanel {
    private JLabel accountJLabel = new JLabel("转账账号：");
    private JLabel transferJLable= new JLabel("转账金额：");
    private JTextField accountField = new JTextField();
    private JPasswordField transferField = new JPasswordField();


    private ImageIcon sureImg= new ImageIcon("atmlogo/buttonSure.jpg");
    private ImageIcon clearImg= new ImageIcon("atmlogo/buttonClear.jpg");



    private Font font = new Font("黑体",Font.BOLD,30);

    private JButton sureBth= new JButton(sureImg);
    private JButton clearBth= new JButton(clearImg);



    public TransferPanel(){
        this.setLayout(null);
        sureBth.setBounds(530,370,140,50);
        clearBth.setBounds(360,370,150,50);

        accountJLabel.setBounds(200,200,250,50);
        accountJLabel.setFont(font);

        accountField.setBounds(400,200,250,50);
        accountField.setFont(font);


        transferJLable.setBounds(200,300,250,50);
        transferJLable.setFont(font);

        transferField.setBounds(400,300,250,50);
        transferField.setFont(font);

        this.add(accountField);
        this.add(accountJLabel);
        this.add(transferField);
        this.add(transferJLable);
        this.add(sureBth);
        this.add(clearBth);
        this.setOpaque(false);
    }
}
